import Vue from 'vue'
import Router from 'vue-router'
import AppHeader from '@/components/AppHeader'
import AppBar from '@/components/AppBar'
import env from '@/components/env'
import mysqlManage from '@/components/mysqlManage'
import LoginWeb from '@/components/LoginWeb'
import UserManage from '@/components/UserManage'
import RealTime from '@/components/RealTime'
import CaseManage from '@/components/CaseManage'
import RunHistroy from '@/components/RunHistroy'
import batch from '@/components/batch'
import timeTask from '@/components/timeTask'
import DepartManage from '@/components/DepartManage'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/AppBar',
      name: 'AppBar',
      component: AppBar,
      children:[    {
        path:'/env',
        name:'环境配置',
        component:env
      },
        {
          path:'/mysqlManage',
          name:'数据库管理',
          component:mysqlManage
        },

        {
          path:'/UserManage',
          name:'用户管理',
          component:UserManage
        },
        {
          path:'/RealTime',
          name:'实时监控',
          component:RealTime
        },
        {
          path:'/CaseManage',
          name:'接口用例',
          component:CaseManage
        },
        {
          path:'/RunHistroy',
          name:'历史记录',
          component:RunHistroy
        },
        {
          path:'/batch',
          name:'批次查询',
          component:batch
        },
        {
          path:'/timeTask',
          name:'定时任务',
          component:timeTask
        },        {
          path:'/DepartManage',
          name:'组织管理',
          component:DepartManage
        },
        ]

  },


    {
      path:'/AppHeader',
      name:'AppHeader',
      component:AppHeader
    },
    {
      path:'/Login',
      name:'登陆',
      component:LoginWeb
    }
  ]
})
